

import sys



class Action(object):
    def __init__(self,command, wait):
        self.command = command
        self.wait = wait

class Strategy(object):
    def __init__(self):
        self.state = 'IN_PROGRESS'
        self.action_list = []
    def next_action(self):
        pass
    def status(self):
        pass


class HungryActionStrategy(Strategy):
    def __init__(self):
        Strategy.__init__(self)
        self.action_list.append(Action("Soguksu ic."), 20)
        self.action_list.append(Action("Sut ic"), 10)
        self.action_list.append(Action("Leblebi ye!"), 30)
        self.action_index = 0
        self.current_action = self.action_list[self.action_index]
        
    def status(self):
        return self.state
    
    def well_done(self):
        self.state = 'SUCCESS'
            
    def next_action(self):
        self.action_index += 1
        if len(self.action_list) > self.action_index:
            self.current_action = self.action_list[self.action_index]
        else:
            self.state = 'FAILED'
        return self.current_action
        


#...



if __name__ == '__main__':
    status = 'Hungry'
    strategy = globals()[status+'ActionStrategy']()
    while strategy.status() == '
